package com.dp.mallchat.common.common.event;

import com.dp.mallchat.common.user.domain.user.entity.User;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: dupeng
 * @CreateTime: 2024-06-09  19:34
 * @Description: 用户上线事件
 */
@Getter
public class UserOnlineEvent extends ApplicationEvent {

    private final User user;

    public UserOnlineEvent(Object source, User user) {
        super(source);
        this.user = user;
    }
}
